package com.iris.live.services.data.models;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by ThinkPad on 2016/11/11.
 */
@SuppressWarnings("JpaDataSourceORMInspection")
@Entity
@Table(name = "crm_explore", schema = "live", catalog = "")
public class CrmExploreModel {
    private Integer id;
    private Integer custId;
    private String newSc;
    private String isClue;
    private Integer clueId;
    private String remark;
    private Timestamp exploreTime;
    private String scCheck;
    private String updateAccount;
    private Timestamp updateTime;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    @Basic
    @Column(name = "custId")
    public Integer getCustId() {
        return custId;
    }

    public void setCustId(Integer custId) {
        this.custId = custId;
    }

    @Basic
    @Column(name = "newSc")
    public String getNewSc() {
        return newSc;
    }

    public void setNewSc(String newSc) {
        this.newSc = newSc;
    }

    @Basic
    @Column(name = "isClue")
    public String getIsClue() {
        return isClue;
    }

    public void setIsClue(String isClue) {
        this.isClue = isClue;
    }

    @Basic
    @Column(name = "clueId")
    public Integer getClueId() {
        return clueId;
    }

    public void setClueId(Integer clueId) {
        this.clueId = clueId;
    }

    @Basic
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "exploreTime")
    public Timestamp getExploreTime() {
        return exploreTime;
    }

    public void setExploreTime(Timestamp exploreTime) {
        this.exploreTime = exploreTime;
    }

    @Basic
    @Column(name = "scCheck")
    public String getScCheck() {
        return scCheck;
    }

    public void setScCheck(String scCheck) {
        this.scCheck = scCheck;
    }

    @Basic
    @Column(name = "updateAccount")
    public String getUpdateAccount() {
        return updateAccount;
    }

    public void setUpdateAccount(String updateAccount) {
        this.updateAccount = updateAccount;
    }

    @Basic
    @Column(name = "updateTime")
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CrmExploreModel that = (CrmExploreModel) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (custId != null ? !custId.equals(that.custId) : that.custId != null) return false;
        if (newSc != null ? !newSc.equals(that.newSc) : that.newSc != null) return false;
        if (isClue != null ? !isClue.equals(that.isClue) : that.isClue != null) return false;
        if (clueId != null ? !clueId.equals(that.clueId) : that.clueId != null) return false;
        if (remark != null ? !remark.equals(that.remark) : that.remark != null) return false;
        if (exploreTime != null ? !exploreTime.equals(that.exploreTime) : that.exploreTime != null) return false;
        if (scCheck != null ? !scCheck.equals(that.scCheck) : that.scCheck != null) return false;
        if (updateAccount != null ? !updateAccount.equals(that.updateAccount) : that.updateAccount != null)
            return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (custId != null ? custId.hashCode() : 0);
        result = 31 * result + (newSc != null ? newSc.hashCode() : 0);
        result = 31 * result + (isClue != null ? isClue.hashCode() : 0);
        result = 31 * result + (clueId != null ? clueId.hashCode() : 0);
        result = 31 * result + (remark != null ? remark.hashCode() : 0);
        result = 31 * result + (exploreTime != null ? exploreTime.hashCode() : 0);
        result = 31 * result + (scCheck != null ? scCheck.hashCode() : 0);
        result = 31 * result + (updateAccount != null ? updateAccount.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        return result;
    }
}
